Skip to content

added shortcut (win + down) to minimize main window#34

Merged
Death111 merged 4 commits intodevelopfrom
feature/windowsAndDownToMinimize
Sep 28, 2019
Merged

added shortcut (win + down) to minimize main window#34
Death111 merged 4 commits intodevelopfrom
feature/windowsAndDownToMinimize

Conversation

@mplieske
Copy link
Contributor

@mplieske mplieske commented Sep 2, 2019

No description provided.

final KeyCode down = KeyCode.DOWN;
final KeyCombination keyComb = new KeyCodeCombination(down, KeyCombination.META_DOWN);
mainScene.addEventFilter(KeyEvent.KEY_RELEASED, keyEvent -> {
LOG.info("Key was Pressed '{}'", keyEvent.getCode());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now we actually have a keylogger :)


private void registerMinifyEventlistener(final Scene mainScene, final Stage primaryStage) {
final KeyCode down = KeyCode.DOWN;
final KeyCombination keyComb = new KeyCodeCombination(down, KeyCombination.META_DOWN);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool, didn't know this 👍 should also use this in the listener for the popup

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of jnative hook?

@Death111 Death111 merged commit d3855c2 into develop Sep 28, 2019
@Death111 Death111 deleted the feature/windowsAndDownToMinimize branch September 28, 2019 23:01
@Death111 Death111 self-assigned this Sep 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants